/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcItemActionRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   protected String mIDList;
/*    */   protected String mOp;
/*    */   protected String mTag;
/*    */   protected String mFolder;
/*    */   
/*    */   public void setMsgList(String idList)
/*    */   {
/* 39 */     this.mIDList = idList;
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/* 45 */   public void setOp(String op) { this.mOp = op; }
/*    */   
/* 47 */   public void setTag(String t) { this.mTag = t; }
/*    */   
/* 49 */   public void setFolder(String f) { this.mFolder = f; }
/*    */   
/* 51 */   public String getMsgList() { return this.mIDList; }
/* 52 */   public String getOp() { return this.mOp; }
/* 53 */   public String getTag() { return this.mTag; }
/* 54 */   public String getFolder() { return this.mFolder; }
/*    */   
/*    */   protected Element getRequestXML() {
/* 57 */     Element request = DocumentHelper.createElement(MailConstants.ITEM_ACTION_REQUEST);
/* 58 */     Element a = DomUtil.add(request, "action", "");
/* 59 */     DomUtil.addAttr(a, "id", this.mIDList);
/* 60 */     DomUtil.addAttr(a, "op", this.mOp);
/* 61 */     DomUtil.addAttr(a, "tag", this.mTag);
/* 62 */     DomUtil.addAttr(a, "l", this.mFolder);
/* 63 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 69 */     LmcMsgActionResponse response = new LmcMsgActionResponse();
/* 70 */     Element a = DomUtil.get(responseXML, "action");
/* 71 */     response.setMsgList(DomUtil.getAttr(a, "id"));
/* 72 */     response.setOp(DomUtil.getAttr(a, "op"));
/* 73 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcItemActionRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */